﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TransshipOrderDetail.aspx.cs" Inherits="WMS6.Web.CrossDock.TransshipOrderDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>ASNDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
           
        }
        
        //弹出窗口选择货品
        function selectSku()
        {
            var rtnValue = popModalWindow('../Configuration/SkuQuery.aspx?action=txtSkuID&ownerID='+document.getElementById("txtOwnerID").value,'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuID").focus();
                document.getElementById("txtSkuID").value = rtnValue;
                document.getElementById("hdnSkuID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1";   
                __doPostBack("txtSkuID_TextChanged","");
            }
        }
        
        //弹出窗口选择承运商
        function selectPack()
        {
            var rtnValue = popModalWindow('../Configuration/PackQuery.aspx?action=txtPackID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtPackID").focus();
                document.getElementById("txtPackID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1";   
                __doPostBack("txtPackID_TextChanged","");
            }
        }
        //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
                  document.getElementById("hdnPageType").value = "1";   
                __doPostBack("txtVendorID_TextChanged","");
            }
        }
        //弹出窗口选择货品别名
        function selectAlternateSku()
        { 
            var rtnValue = popModalWindow('../Configuration/AlternateSkuQuery.aspx?action=txtSkuID&OwnerID='+ document.getElementById("txtOwnerID").value,'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                var rtnText = rtnValue.split(',');
                document.getElementById("txtSkuID").value = rtnText[0];
                document.getElementById("hdnSkuID").value = rtnText[0];
                document.getElementById("txtAltSkuID").value = rtnText[1];               
                document.getElementById("txtVendorID").value = rtnText[2]; 
                document.getElementById("hdnPageType").value = "1";   
                 __doPostBack("txtAltSkuID_TextChanged","");
                // 带出供应商名称                   
            }
        }
        
       
      
        function showAction() {
            var pos = getElementPos("btnAction");
            document.getElementById("actionDiv").style.top = pos.y + 17;
            document.getElementById("actionDiv").style.left = pos.x;
            document.getElementById("hiddenFlag").value = '1';
        }
      
        function hiddenDiv() {
            var flag = document.getElementById("hiddenFlag").value
            if (flag == "1") {
                document.getElementById("actionDiv").style.display = "block";
                document.getElementById("hiddenFlag").value = '0';
            }
            else {
                document.getElementById("actionDiv").style.display = "none";
            }
        }
    </script>
</head>
<body onunload="SavePageValue('btnSave','hdnPageQty');">
    <form id="F4013" runat="server">
    
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblAllocateRuleDetail" runat="server" 
                            CssClass="label_header" Text="直运订单明细" 
                            meta:resourcekey="lblAllocateRuleDetail"></asp:Label></td>
                    <td><asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>" 
                            AccessKey="c" onclick="btnCancel_Click" 
                             /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" 
                            AccessKey="s" onclick="btnSave_Click"  
                            OnClientClick="SethdnPageQty('hdnPageQty');" 
                             /></td>
                              <td>    <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>" class="button"  onclick="showAction(); return false;" />        </td>
                                     
                </tr>
            </table>
        </div>
          <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>        
        
        <div id="div_menu">
        <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">&nbsp;自定义字段&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
        </div>
        
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblReceiptLineID" runat="server" CssClass="label" Text="行号" 
                                meta:resourcekey="lblReceiptLineID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblLpnID" runat="server" CssClass="label" Text="货主" 
                                meta:resourcekey="lblLpnID"></asp:Label><font color="red">*</font>
                        </td>
                        <td width="180px">
                          
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtReceiptLineID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtReceiptLineID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                Enabled="False" meta:resourcekey="ddlStatus"></asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtLpnID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLpnID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku();"/>
                        </td>
                        <td width="180px">
                       
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品" 
                                meta:resourcekey="lblSkuID"></asp:Label><font class="must_input">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblSkuDesc" runat="server" CssClass="label" Text="货品描述" 
                                meta:resourcekey="lblSkuDesc"></asp:Label>
                        </td>
                        <td width="180px">
                           
                        </td>
                        <td width="180px">
                         
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtSkuID"></asp:TextBox>
                        </td>
                        <td width="180px" colspan=2>
                            <asp:TextBox ID="txtSkuDesc" runat="server" CssClass="largetextbox" 
                                meta:resourcekey="txtSkuDesc"></asp:TextBox>
                        </td>
                        <td width="180px">
                           
                        </td>
                        <td width="180px">
                           </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblPackID" runat="server" CssClass="label" Text="数量" 
                                meta:resourcekey="lblPackID"></asp:Label><font color="red">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUomID" runat="server" CssClass="label" Text="破损数量" 
                                meta:resourcekey="lblUomID"></asp:Label>
                        </td>
                        <td width="180px">
                           
                        </td>
                        <td width="180px">
                           
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtPackID" runat="server" CssClass="textbox" AutoPostBack="True" 
                           
                                meta:resourcekey="txtPackID" ></asp:TextBox>
                        </td>
                        <td width="180px">
                             <asp:TextBox ID="TextBox12" runat="server" CssClass="textbox" AutoPostBack="True" 
                           
                                meta:resourcekey="txtPackID" ></asp:TextBox>
                        </td>
                        <td width="180px">
                           
                        </td>
                        <td width="180px">
                            
                        </td>
                    </tr>
                   
                    <tr style="height:20px;">
                        <td></td>
                    </tr>
                 </table>
             </div>
             <div id="con_one_2"  style="display:none;">
                <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text ="自定义字段01" 
                                    meta:resourcekey="lblUdf1"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text ="自定义字段06" 
                                    meta:resourcekey="lblUdf6"></asp:Label>
                            </td>
                            <td width="180px" colspan="2">
                                <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="拣货指令" 
                                    meta:resourcekey="lblRemark"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf1"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf6"></asp:TextBox>
                            </td>
                             <td width="360px" colspan="2" rowspan="3">
                                <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" 
                                     TextMode="MultiLine" meta:resourcekey="txtRemark" ></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text ="自定义字段02" 
                                    meta:resourcekey="lblUdf2"></asp:Label>
                            </td>
                            <td width="180px">
                                 <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text ="自定义字段07" 
                                     meta:resourcekey="lblUdf7"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf2"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf7"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" 
                                    meta:resourcekey="lblUdf3"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" 
                                    meta:resourcekey="lblUdf8"></asp:Label>
                            </td>
                              <td width="180px" colspan="2">
                                <asp:Label ID="Label11" runat="server" CssClass="label" Text="备注" 
                                    meta:resourcekey="lblRemark"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf3"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf8"></asp:TextBox>
                            </td>
                            <td width="360px" colspan="2" rowspan="3">
                                <asp:TextBox ID="TextBox11" runat="server" CssClass="largetextarea" 
                                     TextMode="MultiLine" meta:resourcekey="txtRemark" ></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf04" runat="server" CssClass="label" Text="自定义字段04" 
                                    meta:resourcekey="lblUdf04"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf09" runat="server" CssClass="label" Text="自定义字段09" 
                                    meta:resourcekey="lblUdf09"></asp:Label>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf4"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf9"></asp:TextBox>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" 
                                    meta:resourcekey="lblUdf5"></asp:Label>
                            </td>
                            <td width="180px">
                                <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" 
                                    meta:resourcekey="lblUdf10"></asp:Label>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf5"></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" 
                                    meta:resourcekey="txtUdf10"></asp:TextBox>
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                         <tr>
                            <td width="180px" style=" height:10px">
                               
                            </td>
                            <td width="180px">
                              
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                            <td width="180px">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
             </div>        
        </div>       
        
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
            <input type="hidden" id="hdnDataFormat"  runat="server"/>  
            <input type="hidden" id="hdncalendarFlag"  runat="server"/>  
           <input type="hidden" id="hiddenFlag" />
    
      </ContentTemplate>              
        </asp:UpdatePanel>
        <div id="actionDiv" style="background-color:#FFFFFF; position:absolute;display:none; border:none 0 black">
                 <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line" id="tdlnkbtnImportPo" runat="server"   >
                             <asp:LinkButton ID="lnkbtnImportPo" runat="server"  Text="复制行" 
                                 OnClientClick="popPurchaseOrderQuery();" 
                                 ></asp:LinkButton>
                         </td>                          
                     </tr>
                      <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line" id="td1" runat="server"   >
                             <asp:LinkButton ID="LinkButton1" runat="server"  Text="导入行" 
                                 OnClientClick="popPurchaseOrderQuery();" 
                                 ></asp:LinkButton>
                         </td>                          
                     </tr>
                     
                 </table>
            </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
		hiddenDiv();
	
		//-->
</script> 

